
# MESSAGE(STATUS "${CMAKE_CURRENT_SOURCE_DIR}")
PROJECT(rtsp)
include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/live/BasicUsageEnvironment/include
  ${CMAKE_CURRENT_SOURCE_DIR}/live/groupsock/include
  ${CMAKE_CURRENT_SOURCE_DIR}/live/liveMedia/include
  # ${CMAKE_CURRENT_SOURCE_DIR}/live/mediaServer/include  
  ${CMAKE_CURRENT_SOURCE_DIR}/live/UsageEnvironment/include
#   ${CMAKE_CURRENT_SOURCE_DIR}/live/RtspServer/  
)
add_definitions(-DNO_OPENSSL)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/live/BasicUsageEnvironment  LIBSRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/live/groupsock  LIBSRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/live/liveMedia  LIBSRC)
# aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/mediaServer  LIBSRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/live/UsageEnvironment  LIBSRC)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/  LIBSRC)
# aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/RtspServer  LIBSRC)
add_definitions(-DALLOW_SERVER_PORT_REUSE)
add_definitions(-DSOCKLEN_T=socklen_t)
add_definitions(-D_LARGEFILE_SOURCE=1)
add_definitions(-D_FILE_OFFSET_BITS=64)
add_definitions(-D_EPOLL_)

add_library(${PROJECT_NAME} SHARED ${LIBSRC})
# add_library(${PROJECT_NAME} SHARED ${LIBSRC})
# set_target_properties(${PROJECT_NAME} PROPERTIES
#     VERSION 1.0
#     SOVERSION 1
# )